#include<iostream>
#include<cstdio>
using namespace std;

int main(){
	freopen("out.dat","w",stdout);
	int sum=0;
	int count=0;
	int x;
	while(1){
		cin>>x;
		if(x==0){
			break;
		}
		sum+=x;
		count++;
	}
	printf("%.2f\n",sum/count);
	cout<<count;
	fclose(stdout);
	return 0;
} 
